package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OSWDemo2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("fos.ttx");
        OutputStreamWriter osw=new OutputStreamWriter(fos);
        osw.write("唱跳rap");
        osw.write("篮球");
        System.out.println("OK");
        osw.close();
    }
}
